﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WebApp.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
        div{
            width:350px;
            margin:10% auto;
        }
        .auto-style1 {
            height: 34px;
        }
        .auto-style2 {
            height: 33px;
        }
        .auto-style3 {
            height: 32px;
        }
        .auto-style4 {
            height: 28px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style1"></td>
                    <td class="auto-style1">
                        <asp:Label ID="Label1" runat="server" Text="登录界面"></asp:Label>
                    </td>
                    <td class="auto-style1"></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        <asp:Label ID="Label2" runat="server" Text="用户："></asp:Label>
                    </td>
                    <td class="auto-style2">
                        <asp:TextBox ID="userTxb" runat="server" Height="23px"></asp:TextBox>
                    </td>
                    <td class="auto-style2"></td>
                </tr>
                <tr>
                    <td class="auto-style2">
                        &nbsp;</td>
                    <td class="auto-style2">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="userTxb" ErrorMessage="用户名不能为空" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style2">&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        <asp:Label ID="Label3" runat="server" Text="密码："></asp:Label>
                    </td>
                    <td class="auto-style3">
                        <asp:TextBox ID="pwdTxb" runat="server" Height="23px"></asp:TextBox>
                    </td>
                    <td class="auto-style3"></td>
                </tr>
                <tr>
                    <td class="auto-style3">
                        &nbsp;</td>
                    <td class="auto-style3">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="pwdTxb" ErrorMessage="密码不能为空" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style3">&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style4"></td>
                    <td class="auto-style4">
                        <asp:Label ID="Label4" runat="server" Text="Label" ForeColor="#FF3300" Visible="False"></asp:Label>
                    </td>
                    <td class="auto-style4"></td>
                </tr>
                <tr>
                    <td class="auto-style2" colspan="3" style="text-align: center">
                        <asp:Button ID="dlBtn" runat="server" Text="登录" OnClick="dlBtn_Click" />&nbsp;&nbsp;
                        <asp:Button ID="tcBtn" runat="server" Text="退出登录" OnClick="tcBtn_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
